Create or update a batch of Recommend Rules
Each Recommend Rule is created or updated, depending on whether a Recommend Rule with the same objectID
already exists.
You may also specify true
for clearExistingRules
, in which case the batch will atomically replace all the existing Recommend Rules.
Recommend Rules are similar to Search Rules, except that the conditions and consequences apply to a source item instead of a query. The main differences are the following:
pattern
and anchoring
are unavailable.filters
triggers if the source item matches the specified filters.filters
accepts numeric filters.params
only covers filtering parameters.automaticFacetFilters
doesn’t require a facet value placeholder (it tries to match the data source item’s attributes instead).Your Algolia application ID.
Your Algolia API key with the necessary permissions to make the request. Permissions are controlled through access control lists (ACL) and access restrictions. The required ACL to make a request is listed in each endpoint's reference.
Name of the index on which to perform the operation.
"ALGOLIA_INDEX_NAME"
related-products
, bought-together
, trending-facets
, trending-items
Recommend rules.
OK
Response, taskID, and update timestamp.